package com.shp.pojo;

import java.util.List;

/**
 * Description:
 * 分页条件查询类
 * @author zwl
 * @version 1.0
 * @date 2020/3/20 21:25
 */
public class QueryDeviceFilter<T,E> {
    /**
     * 条件实体类
     */
   private T filter;
    /**
     * 条件查询的数据集合
     */
   private List<E> data;

    /**
     * 页码
     */
   private Integer pageNum;

    /**
     * 每页显示的记录数，默认10条记录
     */
    private Integer pageSize = 10;

    @Override
    public String toString() {
        return "QueryDeviceFilter{" +
                "filter=" + filter +
                ", data=" + data +
                ", pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                '}';
    }

    public T getFilter() {
        return filter;
    }

    public void setFilter(T filter) {
        this.filter = filter;
    }

    public List<E> getData() {
        return data;
    }

    public void setData(List<E> data) {
        this.data = data;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
